package com.anolesoft.amljmes.foreknow.mapper;


import com.anolesoft.amljmes.foreknow.bo.MesBzzPtd;
import com.anolesoft.amljmes.foreknow.bo.MesBzzPtjh;
import com.anolesoft.amljmes.foreknow.dto.MesBzzPtjhDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface MesBzzPtjhMapper {
    /**
     * 获取全部列表
     * @param mesBzzPtjhDto
     * @return
     */
    List<MesBzzPtjh> queryAll (MesBzzPtjhDto mesBzzPtjhDto);

    /**
     * 生成配套单(改变标记)
     * @param
     * @return
     */
    int updateDelete(List<String> list);

    /**
     * 批量添加到配套单
     * @param
     * @return
     */
    int insertData(MesBzzPtd vo);

    /**
     * 根据ierpid查询配套计划
     * @param mesBzzPtjh
     * @return
     */
    MesBzzPtjh ptjh(MesBzzPtjh mesBzzPtjh);

    /**
     * 获取序列的流水号
     * @return
     */
    @Select(" select jjmes_ptd.nextval as con from dual ")
    int liuShuiHao();
}
